"use strict";

const Controller = require("egg").Controller;

class HomeController extends Controller {
  async index() {
    const ctx = this.ctx;
    ctx.body = await ctx.model.User.findAll({
      limit: 10, // 查询前10条数据
    });
  }
}

module.exports = HomeController;
